
package vn.aptech.project.control;
import vn.aptech.project.model.dao.*;
import java.io.IOException;
import java.sql.SQLException;
import vn.aptech.project.model.dto.*;
import java.io.FileNotFoundException;
import java.util.Vector;

public class  Employee_Detail_BLL {

private Employee_Detail_DAO   obj ;

public int getStaffidByStaffName(String staffname) throws SQLException, FileNotFoundException, IOException{
    return obj.getStaffidByStaffName(staffname);
}
public Vector totalemp() throws SQLException
{
return obj.totalemp();
}
public Employee_Detail_BLL() throws ClassNotFoundException, SQLException, IOException {
     this.obj   = new  Employee_Detail_DAO();
}
public String getStaffDepartByStaffName(String staffname) throws SQLException, FileNotFoundException, IOException{
    return obj.getStaffDepartByStaffName(staffname);
}
public int getStaffContactByStaffName(String staffname) throws SQLException, FileNotFoundException, IOException{
    return obj.getStaffContactByStaffName(staffname);
}
public String getStaffAddByStaffName(String staffname) throws SQLException, FileNotFoundException, IOException{
    return obj.getStaffAddByStaffName(staffname);
}
public Vector SelectPwByName(String UseName) throws SQLException
{
return obj.SelectPwByName(UseName);
}
public Vector selectEmployee_Detail() throws SQLException {
 return  obj.selectall();
}
public Vector SearchEmployee_DetailByName(String staffname) throws SQLException {
 return  obj.SearchEmployeeByName(staffname);
}
public Vector selectEmployee_DetailById(String staffid) throws SQLException {
 return  obj.selectEmployeeById(staffid);
}
public int insertEmployee_Detail(Employee_Detail_DTO object) throws SQLException {
 return  obj.insert(object);
}


public int updateEmployee_Detail(Employee_Detail_DTO object) throws SQLException {
 return  obj.update(object);
}


public int deleteEmployee_Detail(int staffid) throws SQLException {
 return  obj.delete(staffid);
}
}
